
class Student{
    public String name;//学生名字
    public int age;//学生年龄
    public String stuNum;//学生学号
    public void Print(){
        System.out.print("name:"+this.name+"\n"+""+"age:"+this.age+"\n"+""+"stuNum:"+this.stuNum+" " );
    }
    public void setStudent(Student this,String name,int age,String stuNum){
        this.name=name;
        this.age=age;
        this.stuNum=stuNum;
    }
}
public class Demo08 {
    public static void main(String[] args) {
        Student stu1=new Student();
        stu1.setStudent("zhangsan",18,"1234");
        stu1.Print();
    }
    public static void main2(String[] args) {
        Student stu1=new Student();
        stu1.name="zhanfsan";
        stu1.age=18;
        stu1.stuNum="1234";
        stu1.Print();
        System.out.println();
        /*stu1.eat();
        stu1.Do();*/
    }
    public static void main1(String[] args) {
        TestDemo01 testDemo01=new TestDemo01();
        //testDemo01.test();
        //System.out.println(testDemo01.a);
    }
}
